//
//  QTHotTableViewCell.m
//  QTLifeCircle
//
//  Created by 王琼 on 17/1/15.
//  Copyright © 2017年 徐腾. All rights reserved.
//

#import "QTHotTableViewCell.h"

#import <UIImageView+WebCache.h>
@interface QTHotTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end
@implementation  QTHotTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



-(void)setModel:(QTNewModel *)model
{
    _model = model;
    //头像
    NSURL* URL = [NSURL URLWithString:model.picUrl];
    [self.icon sd_setImageWithURL:URL placeholderImage:[UIImage imageNamed:@"no"]];
    self.titleLabel.text = model.title;
    self.timeLabel.text = model.time;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
